package com.hins.demo.gateway;

import com.hins.demo.model.transfer.entity.Account;
import com.hins.demo.model.transfer.valueobject.AccountId;
import com.hins.demo.model.transfer.valueobject.AccountNumber;
import com.hins.demo.model.transfer.valueobject.UserId;

/**
 * Description: 转账网关
 *
 * @author wenjiaqi
 * @date 2021/5/14 19:15
 */
public interface TransferGateway {
    Account find(AccountId accountId);
    Account find(AccountNumber accountNumber);
    Account find(UserId userId);
    Account save(Account account);
}
